package com.aya.decorate.decorateimpl;

import com.aya.decorate.Beverage;

import java.math.BigDecimal;

/**
 * 奶泡
 */
public class Whie extends ComboBeverage{

    Beverage beverage;

    public Whie(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public BigDecimal cost() {
        return BigDecimal.valueOf(2).add(beverage.cost());
    }

    @Override
    public String description() {
        return "奶泡";
    }
}
